
//发送异步请求，与服务器进行交换
import request from "../untils/request";

//分页查询学生信息
export const queryStudenApi = (name,degree,clazzId,page,pageSize) => 
    request.get(`/students?name=${name}&degree=${degree}&clazzId=${clazzId}&page=${page}&pageSize=${pageSize}`);

//新增学生
export const addStudentApi = (student)=>request.post(`/students`,student);